package unicall.em.services;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.alibaba.fastjson.JSONObject;

import unicall.em.dtos.SkillDto;
import unicall.em.models.Skill;

public interface SkillService {

    public Skill add(SkillDto dto);
    
    public Skill findById(String id);
    
    public List<Skill> findAll();
    
    public Skill update(SkillDto dto);
    
    public void destroy(String id);
    
    public JSONObject createSkill(SkillDto dto);
    
    public JSONObject updateSkill(SkillDto dto);
    
    public JSONObject destroySkill(SkillDto dto);
    
    public Page<Skill> findAll(Specification<Skill> specation,Pageable pageable);
    
}
